#include "lib.h"
#include "optplyr.h"
#include "pgconn.h"
#include "pghand.h"
#include "jokcrdmg.h"

static JokerCardMgr sMgr;

void
OptPlayerTest(uint8* inbuf, PGPokerConnection* conn)
{
	PGPokerHand hand(&sMgr);
	int32 twocard[2];

	hand.add(inbuf[0]);
	hand.add(inbuf[1]);
	hand.add(inbuf[2]);
	hand.add(inbuf[3]);
	hand.add(inbuf[4]);
	hand.add(inbuf[5]);
	hand.add(inbuf[6]);
	
	OptimalPlayer::split(&hand, twocard);

	conn->msgStart();
	conn->msgAdd(twocard[0]);
	conn->msgAdd(twocard[1]);
	conn->msgEnd();
}
